const seq = require('sequelize')
const time = require('../time')

module.exports = {
  NAME: 'sys_role',
  TABLE: {
    role_id: {
      type: seq.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      comment: '角色id',
      autoIncrement: true,
      field: 'role_id'
    },
    role_name: {
      type: seq.STRING(64),
      comment: '角色名称',
      field: 'role_name'
    },
    role_code: {
      type: seq.STRING(64),
      comment: '角色编号',
      field: 'role_code'
    },
    role_desc: {
      type: seq.STRING(255),
      comment: '角色描述',
      field: 'role_desc'
    },
    del_flag: {
      type: seq.CHAR(1),
      comment: '角色描述',
      defaultValue: '0',
      field: 'del_flag'
    },
    ...time.create_date,
    ...time.upadte_date
  }
}
